Contracts
Deploy A Contract
var server = '';
var contract = """parameter string;
storage string;
code { DUP;
DIP { CDR ; NIL string ; SWAP ; CONS } ;
CAR ; CONS ;
CONCAT;
NIL operation; PAIR}""";
var storage = '"Sample"';
var keyStore = KeyStoreModel(
publicKey: 'edpk.....rrj',
secretKey: 'edsk.....yHH',
publicKeyHash: 'tz1.....hxy',
);
var signer = await Dartez.createSigner(
Dartez.writeKeyWithHint(keyStore.secretKey, 'edsk'));
var result = await Dartez.sendContractOriginationOperation(
server,
signer,
keyStore,
0,
'',
100000,
1000,
100000,
contract,
storage,
codeFormat: TezosParameterFormat.Michelson,
);
print("Operation groupID ===> $result['operationGroupID']");
Call A Contract
Pre Apply Contract Invocation Operation
Inject Operation
Get Operation Status
Sign Payload
Get Block
Get Contract Storage
Last updated