Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Capability Matrix
Centralized Exchanges
Decentralized Exchanges (DEX)
Prediction Markets
Securities and Futures
On-chain & Custom

Returns the address of the wallet configured on the exchange object. When a private key is passed, it returns the wallet address of that key.

exchange.IO(k)
exchange.IO(k, key)

Examples

Print the wallet address of the private key configured on the exchange object.

javascript
function main() { Log(exchange.IO("address")) // Output: the wallet address, starting with 0x }

Returns

TypeDescription

string

Returns the wallet address: a lowercase address starting with 0x on Ethereum (EVM), or an address starting with T on TRON. Returns a null value when the private key is invalid.

Arguments

NameTypeRequiredDescription

k

string

Yes

Function of exchange.IO(). When set to address, it indicates that the function is used to get the configured wallet address.

key

string

No

Private key (hex string, 0x prefix optional); the wallet address of that key is returned. It does not switch the key used by the exchange object (use exchange.IO("key", ...) for that). When omitted, the configured private key is used.

See Also