getNetworkOption
Example usage
alchemyOptions
.getNetworkOption('my-network-option-id')
.then(value => {
//value is a JSON string like {"success":true,"data":42}
});const myOption = alchemyOptions.getNetworkOption('my-network-option-id');
//later in the code
myOption.promise.then(value => {
// do something with the value
});alchemyOptions
.getNetworkOption('my-network-option')
.then(value => {
// value is a JSON string like {"success":true,"data":42}
})
.fail(response => {
// failed to get the value
});Note on passing non-existent IDs
Params
Last updated