1
0
mirror of https://github.com/bigchaindb/site.git synced 2025-02-14 21:10:28 +01:00

fix code examples indentation

This commit is contained in:
Matthias Kretschmann 2017-06-29 16:43:32 +02:00
parent 087690049c
commit 51b6fb849d
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -87,7 +87,7 @@ redirect_from:
{% capture curl %} {% capture curl %}
```bash ```bash
curl -X "POST" "https://test.ipdb.io/api/v1/transactions/" \ curl -X "POST" "https://test.ipdb.io/api/v1/transactions/" \
-d $'{ message: "Blockchain all the things!" }' -d $'{ message: "Blockchain all the things!" }'
``` ```
{% endcapture %}{{ curl | markdownify }} {% endcapture %}{{ curl | markdownify }}
</div> </div>
@ -103,12 +103,12 @@ bdb = BigchainDB('https://test.ipdb.io/api/v1/')
alice = generate_keypair() alice = generate_keypair()
tx = bdb.transactions.prepare( tx = bdb.transactions.prepare(
metadata={ "message": "Blockchain all the things!" } metadata={ "message": "Blockchain all the things!" }
) )
txSigned = bdb.transactions.fulfill( txSigned = bdb.transactions.fulfill(
tx, tx,
private_keys=alice.private_key private_keys=alice.private_key
) )
bdb.transactions.send(txSigned) bdb.transactions.send(txSigned)
@ -124,7 +124,7 @@ const conn = new driver.Connection('https://test.ipdb.io/api/v1/')
const alice = new driver.Ed25519Keypair() const alice = new driver.Ed25519Keypair()
const tx = driver.Transaction.makeCreateTransaction( const tx = driver.Transaction.makeCreateTransaction(
{ message: "Blockchain all the things!" } { message: "Blockchain all the things!" }
) )
const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey) const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey)