Account Abstraction RPC
getSmartAccount
Learn how to use the getSmartAccount JSON-RPC method.
POST
/
#particle_aa_getSmartAccount
Understanding getSmartAccount
getSmartAccount
returns information regarding a specific smart account (such as aBICONOMY
,CYBERCONNECT
,SIMPLE
,LIGHT
,XTERIO
account) tied to an account address. It takes:- Account config object:
name
- string. EitherBICONOMY
,CYBERCONNECT
orSIMPLE
.version
- string. Either1.0.0
, ‘1.0.2’ or2.0.0
(see the Web SDK reference for supported configurations).ownerAddress
- string.
- Account config object:
Query example
JSON
{
"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"
}
]
}
Authorizations
Authorization
string
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
jsonrpc
string
default: 2.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 1requiredThe request identifier.
method
enum<string>
requiredAPI method being called.
Available options:
particle_aa_getSmartAccount
params
array
requiredParameters for retrieving a smart account.
Response
200 - application/json
jsonrpc
string
default: 2.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 1requiredThe request identifier.
result
object[]
requiredArray of smart account details.
chainId
integer
The blockchain chain ID.
Was this page helpful?