Wallets The Octane Wallets API enables you to manage and retrieve information about wallets associated with your account.
The Octane Wallets API provides developers with functionality to manage and retrieve information related to crypto wallets with their accounts.
Wallets:
Obtain a detailed list of wallets linked to a specific API key.
Fetch specific wallet details by querying with the wallet ID.
Facilitate the creation of new wallets by submitting wallet information in the request body.
Wallet API Endpoints
Post Wallets
POST
https://api.abyiss.com/v2/octane/paymentMethods/wallets
Returns a 201 status code upon successful query. Then returns the successful wallet created.
Request Body
Name Type Description The blockchain the wallet is associated with.
201: Created Success 401: Unauthorized Unauthorized -- Invalid API Key
Copy {
"id" : "wal-123456785" ,
"userId" : "usr-123456788" ,
"address" : "some-addy" ,
"blockchain" : "some-chain" ,
"isActive" : true ,
"createdAt" : "2024-02-02T02:09:55.963" ,
"updatedAt" : "2024-02-02T02:09:55.958"
}
Copy {
"Unauthorized" : "Invaild API Key"
}
Get Wallets
GET
https://api.abyiss.com/v2/octane/paymentMethods/wallets
Returns a 200 status code upon successful query. Returns all the of the wallets for an associated apiKey
.
200: OK Success 401: Unauthorized Unauthorized -- Invalid API Key
Copy [
{
"id" : "wal-123456788" ,
"userId" : "usr-123456788" ,
"address" : "someAddress" ,
"blockchain" : "ethereum" ,
"isActive" : true ,
"createdAt" : "2024-01-30T15:06:08.568" ,
"updatedAt" : "2024-01-30T15:06:08.563"
} ,
{
"id" : "wal-123456785" ,
"userId" : "usr-123456788" ,
"address" : "some-addy" ,
"blockchain" : "some-chain" ,
"isActive" : true ,
"createdAt" : "2024-02-02T02:09:55.963" ,
"updatedAt" : "2024-02-02T02:09:55.958"
}
]
Copy {
"Unauthorized" : "Invaild API Key"
}
Get Wallet by ID
GET
https://api.abyiss.com/v2/octane/paymentMethods/wallets/{walletId}
Returns a 200 status code upon successful query. Returns an object with the given walletId
for an associated apiKey
.
Query Parameters
200: OK Success 401: Unauthorized Unauthorized -- Invalid API Key
Copy {
"id" : "wal-123456785" ,
"userId" : "usr-123456788" ,
"address" : "some-addy" ,
"blockchain" : "some-chain" ,
"isActive" : true ,
"createdAt" : "2024-02-02T02:09:55.963" ,
"updatedAt" : "2024-02-02T02:09:55.958"
}
Copy {
"Unauthorized" : "Invaild API Key"
}
Copy & Paste Code
POST Wallets
Curl Python JavaScript
Copy curl -X POST \
-H "Content-Type: application/json" \
-H "apiKey: 123abc" \
-d '{
"wallet": {
"address": "0xsome-address",
"blockchain": "Ethereum",
}
}' \
https://api.abyiss.com/v2/octane/paymentMethods/wallets
Copy import requests
import json
url = "https://api.abyiss.com/v2/octane/paymentMethods/wallets"
headers = {
"Content-Type" : "application/json" ,
"apiKey" : "123abc"
}
wallet_data = {
"wallet" : {
"address" : "0xsome-address" ,
"blockchain" : "Ethereum"
}
}
response = requests . post (url, headers = headers, data = json. dumps (wallet_data))
print (response.status_code)
print (response. json ())
Copy const axios = require ( 'axios' );
const url = 'https://api.abyiss.com/v2/octane/paymentMethods/wallets' ;
const headers = {
'Content-Type' : 'application/json' ,
'apiKey' : '123abc'
};
const walletData = {
wallet : {
address : '0xsome-address' ,
blockchain : 'Ethereum'
}
};
axios .post (url , walletData , { headers })
.then (response => {
console .log ( response .status);
console .log ( response .data);
})
.catch (error => {
console .error ( error . response .status);
console .error ( error . response .data);
});
GET Wallets
Curl Python JavaScript
Copy curl "https://api.abyiss.com/v2/octane/paymentMethods/wallets?apiKey=YOUR_API_KEY_HERE"
Copy import requests
url = 'https://api.abyiss.com/v2/octane/paymentMethods/wallets?apiKey=YOUR_API_KEY_HERE'
response = requests . get (url)
print (response.status_code) # This will print the status code of the response
print (response. json ()) # This will print the response content as JSON
Copy const url = 'https://api.abyiss.com/v2/octane/paymentMethods/wallets?apiKey=YOUR_API_KEY_HERE' ;
fetch (url)
.then (response => {
if ( ! response .ok) {
throw new Error ( 'Network response was not ok' );
}
return response .json ();
})
.then (data => {
console .log (data); // Handle the response data
})
.catch (error => {
console .error ( 'There has been a problem with your fetch operation:' , error);
});
Wallets Response Object
POST Wallets Get Wallets Get Wallet by Id
Example URL: https://api.abyiss.com/v2/octane/paymentMethods/wallets?apiKey=
Copy [
{
"id" : "wal-123456788" ,
"userId" : "usr-123456788" ,
"address" : "someAddress" ,
"blockchain" : "ethereum" ,
"isActive" : true ,
"createdAt" : "2024-01-30T15:06:08.568" ,
"updatedAt" : "2024-01-30T15:06:08.563"
} ,
{
"id" : "wal-123456785" ,
"userId" : "usr-123456788" ,
"address" : "some-addy" ,
"blockchain" : "some-chain" ,
"isActive" : true ,
"createdAt" : "2024-02-02T02:09:55.963" ,
"updatedAt" : "2024-02-02T02:09:55.958"
}
]
Wallets Response Attributes
Attribute Name Data Type Description The crypto wallet address.
The blockchain the wallet is on.
If the wallet is currently active. True or False.
The timestamp the wallet was updated at.
The last timestamp the wallet was updated at.