SHARE
TWEET

Untitled

a guest Jul 17th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use CoinbaseWalletEnumCurrencyCode;
  2. use CoinbaseWalletResourceTransaction;
  3. use CoinbaseWalletValueMoney;
  4.  
  5. $transaction = Transaction::request([
  6.     'amount'      => new Money(8, CurrencyCode::USD),
  7.     'description' => 'Burrito'
  8. ]);
  9.  
  10. $client->createAccountTransaction($transaction);
  11.      
  12. <?php
  13. require_once('vendor/autoload.php');
  14.  
  15. use CoinbaseWalletClient;
  16. use CoinbaseWalletConfiguration;
  17. use CoinbaseWalletEnumCurrencyCode;
  18. use CoinbaseWalletResourceTransaction;
  19. use CoinbaseWalletValueMoney;
  20.  
  21. $apiKey='xxxxxxx';
  22. $apiSecret='xxxxxxx';
  23. $configuration = Configuration::apiKey($apiKey, $apiSecret);
  24. $client = Client::create($configuration);
  25.  
  26. $transaction = Transaction::request([
  27.     'amount'      => new Money(8, CurrencyCode::USD),
  28.     'description' => 'Burrito'
  29. ]);
  30. $client->createAccountTransaction($transaction);
  31. echo json_encode($client->decodeLastResponse());
  32. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top