Skip to content

Instantly share code, notes, and snippets.

@chrisjdavis
Created November 14, 2018 18:55
Show Gist options
  • Save chrisjdavis/04378f80be1ed60995bdb994d2bd08de to your computer and use it in GitHub Desktop.
Save chrisjdavis/04378f80be1ed60995bdb994d2bd08de to your computer and use it in GitHub Desktop.
Example payload
$args = [
[
'account' => 'eosio',
'name' => 'newaccount',
'authorization' => [['actor' => 'eosio', 'permission' => 'active']],
'data' => [
'creator' => 'eosio',
'name' => $account_n,
'owner' => [
'threshold' => 1,
'keys' => [['key' => $owner_public_key, 'weight'=> 1]],
'accounts' => [],
'waits' => []
],
'active' => [
'threshold' => 1,
'keys' => [['key' => $active_public_key, 'weight' => 1]],
'accounts' => [],
'waits' => []
]
]
],
[
'account' => 'eosio',
'name' => 'buyrambytes',
'authorization' => [['actor' => 'eosio', 'permission' => 'active']],
'data' => [
'payer' => 'eosio',
'receiver' => $account_n,
'bytes' => 8192,
],
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment