Send Transaction
SendTransaction
var transaction = new EntryFunctionTransactionPayload
{
Address = "your address",
Function = "0x1::coin::transfer",
Arguments = new object[] { "0x49e39c396ee0f1ace3990968cd9991b6bec0aa6f329afc9d1fa79757839a703f", "100000000" },
TypeArguments = new string[] { "0x1::aptos_coin::AptosCoin" },
};var transaction = new ScriptTransactionPayload
{
Address = "your address",
Arguments = new object[] { "0x49e39c396ee0f1ace3990968cd9991b6bec0aa6f329afc9d1fa79757839a703f", "1" },
TypeArguments = new string[]{ },
Code = new Code
{
ByteCode = "0xa11ceb0b0500000005010002030205050706070d170824200000000100010003060c0503000d6170746f735f6163636f756e74087472616e736665720000000000000000000000000000000000000000000000000000000000000001000001050b000b010b02110002", Abi = new AbiPayload
{
Name = "main",
Visibility = "public",
IsEntry = "true",
GenericTypeParams = new string[]{ },
Params = new[]{ "&signer", "address", "u64" },
Return = new string[] { }
}
}
};Last updated
Was this helpful?