Skip to content

Add .btc Name Resolution in Wallet Send Field #432

Description

@emilianosolazzi

Hello Trust Wallet team,

I would like to propose support for native .btc name resolution inside the Trust Wallet send flow.

This is not a new blockchain, signing method, or coin definition. It is a wallet-level resolver integration that allows users to type a human-readable name such as emiliano.btc in the send field, and have Trust Wallet resolve it to the correct address for the selected chain.

Example:
emiliano.btc → BTC, ETH, SOL, XRP, and other supported chain addresses.

Resolver Endpoint:
text

GET https://api.nativebtc.org/v1/bns/payment/emiliano

Example Response:
json

{
"name": "emiliano.btc",
"coins": {
"BTC": "bc1qxayc4whrhhkzaxqzzxjwtcaacgs25vlkcfmplg",
"SOL": "F8RWJrji2rHBmyyBJHcA7X9xkVv4SfLBbz4fq3U1kgsJ",
"ETH": "0x58d8d4e8D64E5Bdfc80Da7099BB51dd635F93a6b",
"XRP": "rNzkm3BmDEVtjvVjcRkyrMAMyE3spLqQAJ"
}
}

Suggested UX:

User enters a .btc name in the send field

Wallet detects the .btc suffix

Wallet queries the resolver endpoint

Wallet selects the address matching the active chain

Wallet displays the resolved address to the user before sending

Sample Logic:
javascript

async function resolveBTCName(input, walletChain) {
if (!input || !input.toLowerCase().endsWith('.btc')) return null;

const name = input.replace(/.btc$/i, '').toLowerCase();

try {
const res = await fetch(https://api.nativebtc.org/v1/bns/payment/${name});
if (!res.ok) return null;

const data = await res.json();
return data.coins[walletChain.toUpperCase()] || null;

} catch (error) {
console.error('BTC name resolution error:', error);
return null;
}
}

Full Resolver Specification:
text

GET https://api.nativebtc.org/v1/resolver.json

Could you please advise whether this belongs in the Trust Wallet mobile app, browser extension, or another integration layer outside Wallet Core?

I would be happy to provide implementation support, tests, or a pull request in the correct repository if the team is open to this integration.

Best regards,
Emiliano Solazzi
Founder/CEO
emiliano@nativebtc.org
https://nativebtc.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions