SecretNET.Token Namespace

Snip20Tx..::..SendFrom Method (MsgSendFrom, Nullable<(Of <(<'TxOptions>)>)>)

SendFrom is to Send, what TransferFrom is to Transfer. This allows a pre-approved account to not just transfer the tokens, but to send them to another address to trigger a given action. Note SendFrom will set the Receive{sender} to be the env.message.sender (the account that triggered the transfer) rather than the owner account (the account the money is coming from).

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

Syntax


public Task<SingleSecretTx<SendFromResponse>> SendFrom(
	MsgSendFrom msg,
	Nullable<TxOptions> txOptions
)
Public Function SendFrom ( _
	msg As MsgSendFrom, _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SingleSecretTx(Of SendFromResponse))
public:
Task<SingleSecretTx<SendFromResponse^>^>^ SendFrom(
	MsgSendFrom^ msg, 
	Nullable<TxOptions^> txOptions
)

Parameters

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

Return Value

SecretTx<SendFromResponse>.