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

{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "particle_aa_getBTCAccount",
  "params": [
    {
      "name": "BTC",
      "version": "2.0.0",
      "btcPublicKey": "02f2ac735d9a0d1e5db8f6a6878ffb2a67d8415871c34df930cc2c03676f3a4eaa",
      "btcAddress": "bc1qlyv3djgklwe0lm02a0265u4y8gg252cmut3j2u"
    }
  ]
}

Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!