SecretNET.Token Namespace

Snip20Tx..::..TransferFrom Method (String, String, String, String, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'TxOptions>)>)>)

Transfer an amount of tokens from a specified account, to another specified account. This action MUST fail if the Cosmos message sender does not have an allowance limit that is equal or greater than the amount of tokens sent for the owner account.

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

Syntax


public Task<SingleSecretTx<TransferFromResponse>> TransferFrom(
	string contractAddress,
	string owner,
	string recipient,
	string amount,
	Nullable<string> padding,
	Nullable<string> codeHash,
	Nullable<TxOptions> txOptions
)
Public Function TransferFrom ( _
	contractAddress As String, _
	owner As String, _
	recipient As String, _
	amount As String, _
	padding As Nullable(Of String), _
	codeHash As Nullable(Of String), _
	txOptions As Nullable(Of TxOptions) _
) As Task(Of SingleSecretTx(Of TransferFromResponse))
public:
Task<SingleSecretTx<TransferFromResponse^>^>^ TransferFrom(
	String^ contractAddress, 
	String^ owner, 
	String^ recipient, 
	String^ amount, 
	Nullable<String^> padding, 
	Nullable<String^> codeHash, 
	Nullable<TxOptions^> txOptions
)

Parameters

contractAddress
Type: String
The contract address.
owner
Type: String
Account to take tokens from.
recipient
Type: String
Account to send tokens to.
amount
Type: String
Amount of tokens to transfer (Uint128).
padding
Type: Nullable<(Of <(<'String>)>)>
Ignored string used to maintain constant-length messages.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.
txOptions
Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.

Return Value

SingleSecretTx<TransferFromResponse>.