Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update endpoint documentation on portal #5810

Merged
merged 4 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions apps/portal/src/app/nebula/api-reference/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ data: {
"request_id": "9efc7f6a-8576-4d9c-8603-f6c72aa72164",
"type": "sign_transaction",
"source": "executor",
"data": "{\"maxPriorityFeePerGas\": 13620452, \"maxFeePerGas\": 53197870998, \"chainId\": 11155111, \"from\": \"0xc3F2b2a12Eba0f5989cD75B2964E31D56603a2cE\", \"to\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\", \"data\": \"0x\", \"value\": 100000000000000, \"gas\": 0}"
"data": "{\"chainId\": 11155111, \"to\": \"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\", \"data\": \"0x\", \"value\": \"0x5af3107a4000\"}"
}

event: delta
Expand Down Expand Up @@ -311,14 +311,10 @@ Chat actions represent blockchain transactions or operations that Nebula has pre
- `type`: The type of action (e.g., "sign_transaction")
- `source`: Origin of the action (e.g., "executor")
- `data`: Transaction parameters including:
- `maxPriorityFeePerGas`: Maximum priority fee per gas unit
- `maxFeePerGas`: Maximum total fee per gas unit
- `chainId`: Network identifier (e.g., 11155111 for Sepolia)
- `from`: Sender's address
- `to`: Recipient's address
- `data`: Transaction data (if any)
- `value`: Amount to send in wei
- `gas`: Gas limit (0 for automatic estimation)

When handling actions:
1. Parse the `message` field for human-readable transaction details
Expand Down Expand Up @@ -362,8 +358,6 @@ async function handleNebulaResponse(response) {
to: txData.to,
data: txData.data,
value: BigInt(txData.value),
maxFeePerGas: BigInt(txData.maxFeePerGas),
maxPriorityFeePerGas: BigInt(txData.maxPriorityFeePerGas),
chain: txData.chainId,
client
});
Expand Down
Loading