Account Abstraction RPC
getSmartAccount
Learn how to use the getSmartAccount JSON-RPC method.
POST
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
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Request to retrieve smart account information.
Version of the JSON-RPC protocol, should be 2.0.
Example:
"2.0"
The request identifier.
Example:
1
API method being called.
Available options:
particle_aa_getSmartAccount
Parameters for retrieving a smart account.
Response
200 - application/json
Successful response with smart account information.
Version of the JSON-RPC protocol, should be 2.0.
Example:
"2.0"
The request identifier.
Example:
1
Array of smart account details.
The blockchain chain ID.
Example:
80001
Was this page helpful?