-2

https://api.coinbase.com/v1/transactions/send_money
pass bellow Parameter with this api.

{
  "transaction": {
    "to": "user1@example.com",
    "amount": "1.234",
    "notes": "Sample transaction for you"
  }
}
Mitul Marsoniya
  • 5,272
  • 4
  • 33
  • 57

2 Answers2

1

Here is a complete example using the Coinbase iOS SDK:

NSDictionary *transactionDict = @{
    @"to": @"user1@example.com",
    @"amount": @"1.234",
    @"notes": @"sending money" };
NSDictionary *params = @{ @"transaction": transactionDict };

[apiClient doPost:@"transactions/send_money" params:transactionDict completion:^(id result, NSError *error) {
    if (error) {
        NSLog(@"Could not send money: %@", error);
    } else {
        NSLog(@"Success: %@", [result objectForKey:@"transaction"]);
    }
}];
Isaac Waller
  • 32,709
  • 29
  • 96
  • 107
0

I got this ans ..

NSMutableDictionary *dic = [[NSMutableDictionary alloc]init];
        [dic setObject:@"user1@example.com" forKey:@"to"];
        [dic setObject:@"1.234" forKey:@"amount"];
        [dic setObject:@"sending money" forKey:@"notes"];

NSMutableDictionary *dic1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:dic,@"transaction", nil];
Mitul Marsoniya
  • 5,272
  • 4
  • 33
  • 57