Instructions
There are nine types of instructions. In most cases, you will not need to create raw instructions yourself but will instead use one of the methods provided by the Transaction Builder.
CreateAccount
{
"CreateAccount": {
"owner_public_key": string,
"workspace_bucket": string | null
}
}
CallFunction
{
"CallFunction": {
"template_address": string,
"function": string,
"args": any[]
}
}
CallMethod
{
"CallMethod": {
"component_address": string,
"method": string,
"args": any[]
}
}
PutLastInstructionOutputOnWorkspace
{
"PutLastInstructionOutputOnWorkspace": {
"key": number[]
}
}
EmitLog
{
"EmitLog": {
"level": "Error" | "Warn" | "Info" | "Debug",
"message": string
}
}
ClaimBurn
{
"ClaimBurn": {
"claim": {
"publicKey": string,
"outputAddress": string,
"rangeProof": number[],
"proofOfKnowledge": string,
"withdrawProof": ConfidentialWithdrawProof | null,
}
}
}
ClaimValidatorFees
{
"ClaimValidatorFees": {
"epoch": number,
"validator_public_key": string
}
}
DropAllProofsInWorkspace
DropAllProofsInWorkspace
CreateFreeTestCoins
{
"CreateFreeTestCoins": {
"revealed_amount": string,
"output": ConfidentialOutput | null
}
}