Learn how to use the getSmartAccount JSON-RPC method.
curl --request POST \
--url 'https://rpc.particle.network/evm-chain/#particle_aa_getSmartAccount' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "particle_aa_getSmartAccount",
"params": [
[
"<string>"
]
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": [
{}
],
"chainId": 80001
}getSmartAccountgetSmartAccount returns information regarding a specific smart account (such as a BICONOMY, CYBERCONNECT, SIMPLE, LIGHT, XTERIO account) tied to an account address. It takes:
name - string. Either BICONOMY, CYBERCONNECT or SIMPLE.version - string. Either 1.0.0, ‘1.0.2’ or 2.0.0 (see the Web SDK reference for supported configurations).ownerAddress - string.{
"jsonrpc": "2.0",
"id": "ee9cce2a-2f34-4c66-879e-c84c6f0e7f2d",
"chainId": 80001,
"method": "particle_aa_getSmartAccount",
"params": [
// account config array
{
"name": "BICONOMY",
"version": "1.0.0",
"ownerAddress": "0xA60123a1056e9D38B64c4993615F27cCe9A9E8D5"
},
{
"name": "BICONOMY",
"version": "1.0.0",
"ownerAddress": "0x329a7f8b91Ce7479035cb1B5D62AB41845830Ce8"
}
]
}
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Request to retrieve smart account information.
Version of the JSON-RPC protocol, should be 2.0.
"2.0"
The request identifier.
1
API method being called.
particle_aa_getSmartAccount Parameters for retrieving a smart account.
Account details as a string.
Successful response with smart account information.
Was this page helpful?
curl --request POST \
--url 'https://rpc.particle.network/evm-chain/#particle_aa_getSmartAccount' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "particle_aa_getSmartAccount",
"params": [
[
"<string>"
]
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": [
{}
],
"chainId": 80001
}