Skip to content

Instantly share code, notes, and snippets.

@hali241997
Last active December 18, 2019 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hali241997/4bf83b3a7ee7c117f8efb72479bf753c to your computer and use it in GitHub Desktop.
Save hali241997/4bf83b3a7ee7c117f8efb72479bf753c to your computer and use it in GitHub Desktop.
actions: [{
account: 'eosio',
name: 'newaccount',
authorization: [{
actor: account,
permission: 'active'
}],
data: {
creator: account,
name: 'mynewacc',
owner: {
threshold: 1,
keys: [{
key: 'EOS5M3iMC3B3MVfDYMMQUE6Pqj8FhU5fMzc5T6pYdog75SCWUCc8j',
weight: 1
}],
accounts: [],
waits: []
},
active: {
threshold: 1,
keys: [{
key: 'EOS5M3iMC3B3MVfDYMMQUE6Pqj8FhU5fMzc5T6pYdog75SCWUCc8j',
weight: 1
}],
accounts: [],
waits: []
}
}
},
{
account: 'eosio',
name: 'buyrambytes',
authorization: [{
actor: account,
permission: 'active'
}],
data: {
from: account,
receiver: 'mynewacc',
bytes: 8192
}
},
{
account: 'eosio',
name: 'delegatebw',
authorization: [{
actor: account,
permission: 'active'
}],
data: {
from: account,
receiver: 'mynewacc',
stake_net_quantity: '1.0000 SYS',
stake_cpu_quantity: '1.0000 SYS',
transfer: false,
}
}],
expiration,
ref_block_num: refBlockNum,
ref_block_prefix: refBlockPrefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment