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 }
);
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
var txExec = await snip20Client.Tx.SetViewingKey(
contractAddress,
"hello",
txOptions: new TxOptions() { GasLimit = 100_000 });
var txQuery = await snip20Client.Query.GetBalance(
contractAddress,
viewingKey: "hello",
codeHash: codeHash
);
var txQuery = await await snip20Client.Query.GetTokenInfo(
contractAddress,
codeHash: codeHash
);
var txQuery = await snip20Client.Query.GetTransactionHistory(
contractAddress,
pageSize: 10,
viewingKey: "hello",
codeHash: codeHash
);