Create Script Call

circle-info

Check the Scriptbuilder: It explains how to create every type of script.

Script Builderchevron-right

Example

import { ScriptBuilder } from "phantasma-sdk-ts";

const sb = new ScriptBuilder();
const script = sb
  .BeginScript()
  .CallContract("stake", "GetMasterCount", [])
  .EndScript();

console.log(script);

Last updated