curl --request POST \
--url https://be.onebalance.io/api/quotes/prepare-call-quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"account": {
"accountAddress": "0xb8e4b017f4a8870E3eB4eb15c5e180D2a34D877B",
"adminAddress": "0x8FA09fc75bC2619e594cCb720096627DCaA7c5C4",
"sessionAddress": "0xBbef1E2dEA96c1c2001Eb48136e513A855F46097"
},
"targetChain": "eip155:10",
"calls": [
{
"data": "0x095ea7b3000000000000000000000000Bbef1E2dEA96c1c2001Eb48136e513A855F460970000000000000000000000000000000000000000000000000000000000000001",
"to": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"value": "0x0"
}
],
"allowanceRequirements": [
{
"assetType": "eip155:10/erc20:0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"amount": "8000000",
"spender": "0xb8e4b017f4a8870E3eB4eb15c5e180D2a34D877B"
}
],
"tokensRequired": [
{
"assetType": "eip155:10/erc20:0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"amount": "8000000"
}
],
"overrides": [
{
"address": "0xb8e4b017f4a8870E3eB4eb15c5e180D2a34D877B",
"balance": "0x1"
}
]
}'
{
"account": {
"accountAddress": "0xb8e4b017f4a8870E3eB4eb15c5e180D2a34D877B",
"adminAddress": "0x8FA09fc75bC2619e594cCb720096627DCaA7c5C4",
"sessionAddress": "0xBbef1E2dEA96c1c2001Eb48136e513A855F46097"
},
"chainOperation": {
"userOp": {
"sender": "0xb8e4b017f4a8870e3eb4eb15c5e180d2a34d877b",
"nonce": "1120126849530300722547379539971600052481264750391572034956634531672621056",
"factory": "0xd703aae79538628d27099b8c4f621be4ccd142d5",
"factoryData": "0x",
"callData": "0xe9ae5c530100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044a9059cbb0000000000000000000000004ebcfae0c3e747c95504ca7c79c46f725cb4c752000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000",
"callGasLimit": "737280",
"verificationGasLimit": "3076170",
"preVerificationGas": "0",
"maxFeePerGas": "0",
"maxPriorityFeePerGas": "0",
"paymaster": "0xa784e6482bd5edbfe5991b18cbd545ebd46e1cc4",
"paymasterVerificationGasLimit": "19219",
"paymasterPostOpGasLimit": "0",
"paymasterData": "0x",
"signature": "0x"
},
"typedDataToSign": {
"domain": {
"name": "RoleBasedECDSAValidator",
"version": "1.4.3",
"chainId": 10,
"verifyingContract": "0xA24bD06230f3F54e5bf266AE7A41750eE3b789FA"
},
"types": {
"Approve": [
{
"name": "callDataAndNonceHash",
"type": "bytes32"
}
]
},
"primaryType": "Approve",
"message": {
"callDataAndNonceHash": "0xaab2ddac63e4a7e25b7d339cacdff2f9280025cef27699ffe5f5e9e9625b15eb"
}
},
"assetType": "eip155:10/erc20:0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"amount": "8000000"
},
"tamperProofSignature": "0x1eeb521fc3ffd61cb3fa44526b3933155ed774d5c599491bd6dca1366bb8eaed4004f311351ed7ca2f9777e8e561556f546a32bc2b45df7fe303c709613ead541b"
}