export interface AddressEntry {
symbol?: string;
address: string;
publicKey: string;
}
export interface GetAddressesResult {
addresses: AddressEntry[];
}
{
"id": "xxx",
"walletType": "software",
"addresses": [
{
"address": "xxx",
"publicKey": "xxx",
"purpose": "ordinals",
"addressType": "p2tr",
"walletType": "software"
},
{
"address": "xxx",
"publicKey": "xxx",
"purpose": "payment",
"addressType": "p2wpkh",
"walletType": "software"
},
{
"address": "xxx",
"publicKey": "xxx",
"purpose": "stacks",
"addressType": "stacks",
"walletType": "software"
}
],
"network": {
"bitcoin": {
"name": "Testnet4"
},
"stacks": {
"name": "Testnet4"
}
}
}
Describe the bug
The types in this package are defined like this
But what's returned by xverse is different
To Reproduce
Just connect with Xverse
Expected behavior
The response should match this package return types