-
-
-{% capture python %}
-```python
-from bigchaindb_driver import BigchainDB
-from bigchaindb_driver.crypto import generate_keypair
-
-bdb = BigchainDB('{{ site.bigchaindb_api_url }}')
-alice = generate_keypair()
-tx = bdb.transactions.prepare(
- operation='CREATE',
- signers=alice.public_key,
- asset={'data': {'message': 'Blockchain all the things!'}})
-signed_tx = bdb.transactions.fulfill(
- tx,
- private_keys=alice.private_key)
-bdb.transactions.send_commit(signed_tx)
-```
-{% endcapture %}{{ python | markdownify }}
-
-
-
-{% capture nodejs %}
-```js
-const driver = require('bigchaindb-driver')
-
-const alice = new driver.Ed25519Keypair()
-const conn = new driver.Connection('{{ site.bigchaindb_api_url }}/api/v1/')
-const tx = driver.Transaction.makeCreateTransaction(
- { message: 'Blockchain all the things!' },
- null,
- [ driver.Transaction.makeOutput(
- driver.Transaction.makeEd25519Condition(alice.publicKey))],
- alice.publicKey)
-const txSigned = driver.Transaction.signTransaction(tx, alice.privateKey)
-conn.postTransactionCommit(txSigned)
-```
-{% endcapture %}{{ nodejs | markdownify }}
-
-
-
-