Skip to main content
POST
getSmartAccount

Understanding getSmartAccount

  • getSmartAccount returns information regarding a specific smart account (such as a BICONOMY, CYBERCONNECT, SIMPLE, LIGHT, XTERIO account) tied to an account address. It takes:
    • Account config object:
      • 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.

Query example

JSON

Authorizations

Authorization
string
header
required

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.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

method
enum<string>
required

API method being called.

Available options:
particle_aa_getSmartAccount
params
string[][]
required

Parameters for retrieving a smart account.

Account details as a string.

Response

200 - application/json

Successful response with smart account information.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

result
object[]
required

Array of smart account details.

chainId
integer

The blockchain chain ID.

Example:

80001