post https://rpc.particle.network/evm-chain#particle_aa_getBTCAccountsByAddress
Understanding getBTCAccountsByAddress
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
{
"jsonrpc": "2.0",
"id": "1",
"method": "particle_aa_getBTCAccountsByAddress",
"params": [
{
"btcAddress": "bc1qlyv3djgklwe0lm02a0265u4y8gg252cmut3j2u"
}
]
}
{
"jsonrpc": "2.0",
"id": "1",
"method": "particle_aa_getBTCAccountsByAddress",
"params": [
{
"address": "0x94727c34b2409cC5424368cF2D029c3fe3c2b1B7"
}
]
}