SecretNET.Token Namespace

Snip20Tx..::..Deposit Method (MsgDeposit, Nullable<(Of <(<'TxOptions>)>)>)

Deposits a native coin into the contract, which will mint an equivalent amount of tokens to be created. The amount MUST be sent in the sent_funds field of the transaction itself, as coins must really be sent to the contract's native address. The minted amounts MUST match the exchange rate specified by the ExchangeRate query. The deposit MUST return an error if any coins that do not match expected denominations are sent.

Namespace:  SecretNET.Token
Assembly:  SecretNET.Token (in SecretNET.Token.dll)

Syntax


public Task<SingleSecretTx<DepositResponse>> Deposit(
	MsgDeposit msg,
	Nullable<TxOptions> txOptions
)
Public Function Deposit ( _
	msg As MsgDeposit, _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SingleSecretTx(Of DepositResponse))
public:
Task<SingleSecretTx<DepositResponse^>^>^ Deposit(
	MsgDeposit^ msg, 
	Nullable<TxOptions^> txOptions
)

Parameters

msg
Type: SecretNET.Token..::..MsgDeposit
The MSG.
txOptions
Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.

Return Value

SingleSecretTx<DepositResponse>.