CryptoProcessing.io Simple BTC Payments

Your Environment

CP Account

Generate API Keys

Test Request

curl "https://cryptoprocessing.io/api/v1/ping" \
-H "Authorization: Token <token>"

Wallet Setup

https://cryptoprocessing.io/wallets/:id

Payments Forwarding

https://cryptoprocessing.io/wallets/:id/forwardings
https://cryptoprocessing.io/wallets/:id/forwardings/new

Webhooks

https://cryptoprocessing.io/wallets/:id/webhooks

Deposit Address Creation (API)

BTC Rate

Webhook Parsing

transaction["outs"].each do |tx|
address = tx["address"]
CALL_UPDATE_TRANSACTIONS_PROCEDURE(address)
end
(address) # Procedure/Function Parametertransactions = GET https://docs-api.cryptoprocessing.io/#wallet-39-s-address-transactions# Endpoint should look like: https://cryptoprocessing.io/api/v1/wallets/#{wallet_id}/addresses/#{address}/transactionstransactions.each do |tx| # for each transaction
addresses = tx["receiver_addresses"]
tx_hash = tx["hash"]
confirmations_count = tx["confirmations_count"]
addresses.each do |address_object| # for each address in tx
user = FIND_USER_BY_ADDRESS(address_object["address"])
amount = address_object["amount"]
existing_tx = FIND_TRANSACTION(tx_hash)
if not existing_tx.present? # if it's not found
SAVE_TRANSACTION(tx_hash, amount, confirmations_count)
else
UPDATE_CONFIRMATIONS_COUNT(tx_hash, amount, confirmations_count)
end
end
end
Functions you have to implement on your backend:FIND_USER_BY_ADDRESS
FIND_TRANSACTION
SAVE_TRANSACTION
UPDATE_CONFIRMATIONS_COUNT

--

--

--

CTO @ CryptoProcessing.io, Embily.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

CHAINPAD IS THE MULTICHAIN DECENTRALIZED IDO PLATFORM FOR BSC.

Portal Network Hackathon Korea, July 14th — 15th

Agricultural Traceability System Has Completed Internal Testing

GamyFi na Blockchain-based E-Sports and gaming platform wey de build on Elrond wey dey reward…

Mansion Madness

Rubic Weekly Report 09/17/21

A Two Token Economy

Umbrella Network Announces Partnership with Polygon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Eugene Khashin

Eugene Khashin

CTO @ CryptoProcessing.io, Embily.com

More from Medium

Introducing FluidFi’s DigitalDollar ($DUSD)

6 fun facts about the new ICO project, GO.

50% in 30 days: My quest to turn $100 to $150 swing trading cryptocurrencies with the MA pullback…

NO MORE SPECIAL TRADING SKILLS!!! MAKE MONEY TRADING CRYPTO WITH THIS SECRET.