POST
/
#particle_aa_getBTCAccount

Understanding getBTCAccount

  • getBTCAccountcalculates and return the information of smart account tied to an account address from btc public key. It takes:
    Account config object:
    • name- string. only BTC
    • version - string. Either 1.0.0 or 2.0.0.
    • btcPublicKey - string.
    • btcAddress - string. optional

Query example

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

Defines the structure for BTC account request data.

id
integer
default:
1
required

Identifier for the request.

jsonrpc
string
default:
2.0
required

JSON-RPC protocol version, should be 2.0.

method
string
default:
particle_aa_getBTCAccount
required

The method to be invoked on the RPC server.

params
object[]
required

Array containing parameters for the method.

Response

200 - application/json

Response schema for getBTCAccount.

id
integer

Identifier matching the request.

jsonrpc
string

JSON-RPC protocol version used in the response.

result
object

Contains the smart account information derived from the BTC public key.