Quick Access
Coin Methods
Tron
Miscellaneous
Methods
Tron
tronGetAddress

Tron: get address

Display requested address derived by given BIP44 path on device and return it to the caller. User is presented with a description of the requested address and asked to confirm the export on Trezor.

const result = await TrezorConnect.tronGetAddress(params);

Params

Including CommonParams

GetAddress

address

String

Optional

address for validation (read Handle button request section below)

showOnTrezor

Boolean

Optional

determines if address will be displayed on device. Default is set to true

chunkify

Boolean

Optional

determines if address will be displayed in chunks of 4 characters. Default is set to false

Bundle(GetAddress)

Example

Display address of first Tron account:

TrezorConnect.tronGetAddress({
    path: "m/44'/195'/0'/0/0",
});

Return a bundle of Tron addresses without displaying them on device:

TrezorConnect.tronGetAddress({
    bundle: [
        { path: "m/44'/195'/0'/0/0", showOnTrezor: false }, // account 1
        { path: "m/44'/195'/0'/0/1", showOnTrezor: false }, // account 2
        { path: "m/44'/195'/0'/0/2", showOnTrezor: false }, // account 3
    ],
});

Result

Address type

Result with only one address

{
    success: true,
    payload: {
        path: Array<number>, // hardended path
        serializedPath: string,
        address: string,
    }
}

Result with a bundle of addresses

{
    success: true,
    payload: [
        { path: Array<number>, serializedPath: string, address: string }, // account 1
        { path: Array<number>, serializedPath: string, address: string }, // account 2
        { path: Array<number>, serializedPath: string, address: string }  // account 3
    ]
}

Error

{
    success: false,
    payload: {
        error: string // error message
    }
}