Smart accounts linked to EOAs as primary signers
Last updated 4 months ago
POST /smart-account/transaction/build HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 258 { "transactionDetails": [ { "encodedData": "0xa9059cbb000000000000000000000000...", "targetContractAddress": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", "value": "0" } ], "network": "8453", "walletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", "signMode": "ECDSA" }
Transaction built successfully
{ "userOp": { "sender": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", "nonce": "0", "initCode": "0x", "callData": "0xa9059cbb...", "callGasLimit": "100000", "verificationGasLimit": "100000", "preVerificationGas": "21000", "maxFeePerGas": "1000000000", "maxPriorityFeePerGas": "100000000" }, "messageToSign": "0x1234...", "signMode": "ECDSA" }
POST /smart-account/transaction/submit HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 114 { "signature": "0x1234abcd...", "walletAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", "signatureType": "ECDSA" }
Transaction submitted successfully
{ "userOpHash": "0x1234...", "txnHash": "0x5678...", "success": true }
POST /smart-account/transaction/gas-fees HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 133 { "transactionDetails": [ { "encodedData": "text", "targetContractAddress": "text", "value": "text" } ], "network": "text", "walletAddress": "text" }
Gas fees calculated successfully
{ "result": "text" }