BTC Connect RPC
getBTCAccountsByAddress
Learn how to use the getBTCAccountsByAddress JSON-RPC method.
POST
/
#particle_aa_getBTCAccountsByAddress
Understanding getBTCAccountsByAddress
getBTCAccountsByAddress
return smart account btcAddress and it’s smart account address.address
- string, optional, smart account to query btc addressbtcAddress
- string, optional, btc address to query evm smart account address
Query example
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
Request schema for getBTCAccountsByAddress method.
jsonrpc
string
default: 2.0requiredJSON-RPC protocol version, should be 2.0.
id
integer
default: 1requiredIdentifier for the request.
method
string
default: particle_aa_getBTCAccountsByAddressrequiredThe method to be invoked on the RPC server.
params
object[]
requiredArray containing parameters for querying BTC accounts by address.
Response
200 - application/json
Response schema for getBTCAccountsByAddress.
jsonrpc
string
JSON-RPC protocol version used in the response.
id
integer
Identifier matching the request.
result
object[]
List of BTC and smart account addresses associated with the queried address.
Was this page helpful?