Skip to main content

Create Alias

Registers an alias for the wallet address. Proxy of register_alias method.

In your web app, call extension Create Alias method, while extension is on.

Use zano_web3 lib SDK to make a request.

Request

import { ZanoWallet } from 'zano_web3/web';

const zanoWallet = new ZanoWallet();

const alias = "";

const response = await zanoWallet.createAlias(alias, { timeoutMs: 60_000 });

where:

  • alias - Alias itself, a brief shortcut for an address
  • timeoutMs - Timeout of request in ms (no timeout if not set)

Response

{
"success": true,
"data": {
"tx_id": "97d91442f8f3c22683585eaa60b53757d49bf046a96269cef45c1bc9ff7300cc"
}
}

where:

  • tx_id - If success - transactions that performs registration(alias becomes available after few confirmations)

NOTE: You can opt out of the zano_web3 SDK and call Zano Companion directly via window.zano.request.

Request

window.zano.request(
'CREATE_ALIAS',
{
alias: ""
},
timeout
);

where:

  • alias - Alias itself, a brief shortcut for an address
  • timeout - Timeout of request in ms (set to null to disable)

Response

{
"data": {
"result": {
"tx_id": "97d91442f8f3c22683585eaa60b53757d49bf046a96269cef45c1bc9ff7300cc"
}
}
}

where:

  • tx_id - If success - transactions that performs registration(alias becomes available after few confirmations)