SNIP20

SecretNET.Token is a layer on top of the Secret.NET which supports all methods of the reference implementation of the SNIP20 contract.

nuget install SecretNET.Token

Transfer SNIP-20 tokens

var snip20Client = new SecretNET.Token.Snip20Client(secretClient);

var txExec = await snip20Client.Tx.Transfer(
                       contractAddress,
                       recipient,
                       amount, // int as string
                       codeHash,
                       txOptions: new TxOptions() { GasLimit = 5_000_000 }
                    );

Send SNIP-20 Tokens

var txExec = await snip20Client.Tx.Send(
                       contractAddress,
                       recipient,
                       amount, // int as string
                       codeHash,
                       txOptions: new TxOptions() { GasLimit = 5_000_000 }
                    );

Set Viewing Key and Query Balance

Query Token Parameters

Get Transaction History

Last updated

Was this helpful?