Extra object
The extra
object
extra
objectYou can use the extra
object to pass multiple wallets to the widget. The extra
object only works with the widget initialiser library; if you are using the code generated from the tuner you will not be able to pass multiple wallets to the widget.
The options you will need to pass to the object are:
Property | Description | Data Type |
---|---|---|
name | The name of the cryptocurrency being used. | String |
blockchain | The network of the cryptocurrency. | String |
address | The user's wallet address on the specified network. | String |
Constructing the extra
object
extra
objectAn example of using of the wallets object to pass an Ethereum wallet to the widget is shown below:
{
wallets: [
{
name: 'ETH', // case-ignored
blockchain: 'Ethereum', // case-ignored
address: '0x0000000000000000000000000000000000000000',
},
...
],
}
Updated 2 months ago
Documentation related to this page