Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No smart contracts in new style Api #1

Closed
Globik opened this issue Mar 24, 2019 · 3 comments
Closed

No smart contracts in new style Api #1

Globik opened this issue Mar 24, 2019 · 3 comments

Comments

@Globik
Copy link

Globik commented Mar 24, 2019

Is there any smart contract in new style API? I can't see this in docs on website. Any support of smart contracts in BTC?

@4tochka
Copy link
Contributor

4tochka commented Mar 24, 2019

Smart contract in new API is modified
Example with fixed amount
curl -X POST
https://api.bitaps.com/btc/v1/create/payment/address/distribution
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{
"forwarding_address_primary": "37P8thrtDXb6Di5E7f4FL3bpzum3fhUvT7",
"forwarding_address_secondary":"194zMcwXswZtkMdpoX9BYDc4T4iGqW1G61",
"forwarding_address_primary_share":"20000"
}'

Example with percent

curl -X POST
https://api.bitaps.com/btc/v1/create/payment/address/distribution
-H 'Content-Type: application/json'
-H 'cache-control: no-cache'
-d '{
"forwarding_address_primary": "37P8thrtDXb6Di5E7f4FL3bpzum3fhUvT7",
"forwarding_address_secondary":"194zMcwXswZtkMdpoX9BYDc4T4iGqW1G61",
"forwarding_address_primary_share":"10%"
}'

It not yet implemented for LTC, ETH, BCH. Once it will be implemented we will add to docs.

@Globik
Copy link
Author

Globik commented Mar 25, 2019

@4tochka , thanx. Could be used the smart contract like that with testnet bitcoins?

@4tochka
Copy link
Contributor

4tochka commented Mar 26, 2019

yes just use testnet endpoint

@4tochka 4tochka closed this as completed Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants