sendContractOriginationOperation static method
dynamic
sendContractOriginationOperation(
- String server,
- SoftSigner signer,
- KeyStoreModel keyStore,
- int amount,
- String delegate,
- String code,
- String storage,
- TezosParameterFormat codeFormat,
- int offset,
send a contract origination operation fee, gasLimit and storageLimit are estimated by the fee estimation service
Implementation
static sendContractOriginationOperation(
String server,
SoftSigner signer,
KeyStoreModel keyStore,
int amount,
String delegate,
String code,
String storage,
TezosParameterFormat codeFormat,
int offset) async {
var counter = await TezosNodeReader.getCounterForAccount(
server, keyStore.publicKeyHash) +
1;
var operation = constructContractOriginationOperation(
keyStore, amount, delegate, code, storage, codeFormat, counter);
var operations = await appendRevealOperation(server, keyStore.publicKey,
keyStore.publicKeyHash, counter - 1, [operation]);
return sendOperation(server, operations, signer, offset);
}