Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
orman committed Nov 28, 2023
1 parent b114f02 commit f325335
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,25 @@ You can also pass additional arguments:
fireblocks = FireblocksSDK(private_key, api_key, api_base_url="https://api.fireblocks.io", timeout=2.0, anonymous_platform=True)
```

#### Importing Fireblocks Tokenization SDK
#### Using Fireblocks Tokenization SDK
```python
from fireblocks_sdk import FireblocksSDK, FbTokenizationSDK
from fireblocks_sdk import FireblocksSDK, FireblocksTokenization, \
ContractUploadRequest

fireblocks = FireblocksSDK(private_key, api_key)
fbTokenization = FbTokenizationSDK(fireblocks)
fbTokenization = FireblocksTokenization(fireblocks)

tokens=fbTokenization.get_linked_tokens()

contractTemplateRequest=ContractUploadRequest(
name='New Contract Template',
description='description',
longDescription='long description',
bytecode='0x12345',
sourcecode= 'sourcecode',
initializationPhase='ON_DEPLOYMENT',
abi=[]
)
template=fbTokenization.upload_contract_template(contractTemplateRequest)
print(template['id'])
```

0 comments on commit f325335

Please sign in to comment.