BTC Connect RPC
getBTCAccountsByAddress
Learn how to use the getBTCAccountsByAddress JSON-RPC method.
POST
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
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Request to return smart account btcAddress and its smart account address.
Request schema for getBTCAccountsByAddress method.
JSON-RPC protocol version, should be 2.0.
Identifier for the request.
The method to be invoked on the RPC server.
Array containing parameters for querying BTC accounts by address.
Response
200 - application/json
Successful response with BTC and smart account addresses.
Response schema for getBTCAccountsByAddress.
JSON-RPC protocol version used in the response.
Identifier matching the request.
List of BTC and smart account addresses associated with the queried address.
Was this page helpful?