Created
November 14, 2018 18:55
-
-
Save chrisjdavis/04378f80be1ed60995bdb994d2bd08de to your computer and use it in GitHub Desktop.
Example payload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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