Snip20Tx..::..RegisterReceive Method (String, String, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)
This message is used to tell the SNIP-20 contract to call the Receive function of the Cosmos message sender after a successful Send.
In Secret Network this is used to pair a code hash with the contract address that must be called.
This means that the SNIP-20 MUST store the sent code_hash and use it when calling the Receive function.
Namespace:
SecretNET.TokenAssembly: SecretNET.Token (in SecretNET.Token.dll)
Syntax
public Task<SingleSecretTx<RegisterReceiveResponse>> RegisterReceive( string contractAddress, string receiverCodeHash, Nullable<string> padding, Nullable<string> codeHash, Nullable<TxOptions> txOptions )
Parameters
- contractAddress
- Type: String
The contract address.
- receiverCodeHash
- Type: String
A 32-byte hex encoded string, with the code hash of the receiver contract.
- codeHash
- Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.