Skip to content

Latest commit

 

History

History
86 lines (57 loc) · 3.34 KB

AssetsApi.md

File metadata and controls

86 lines (57 loc) · 3.34 KB

fireblocks.AssetsApi

All URIs are relative to https://api.fireblocks.io/v1

Method HTTP request Description
create_assets_bulk POST /vault/assets/bulk Bulk creation of wallets

create_assets_bulk

JobCreated create_assets_bulk(create_assets_bulk_request, idempotency_key=idempotency_key)

Bulk creation of wallets

Create multiple wallets for a given vault account by running an async job.
Note: - These endpoints are currently in beta and might be subject to changes. - We limit accounts to 10k per operation and 200k per customer during beta testing. - Currently, we are only supporting EVM wallets.

Example

from fireblocks.models.create_assets_bulk_request import CreateAssetsBulkRequest
from fireblocks.models.job_created import JobCreated
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint

# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
    secret_key_value = file.read()

# build the configuration
configuration = ClientConfiguration(
        api_key="your_api_key",
        secret_key=secret_key_value,
        base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)


# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
    create_assets_bulk_request = fireblocks.CreateAssetsBulkRequest() # CreateAssetsBulkRequest | 
    idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)

    try:
        # Bulk creation of wallets
        api_response = fireblocks.assets.create_assets_bulk(create_assets_bulk_request, idempotency_key=idempotency_key).result()
        print("The response of AssetsApi->create_assets_bulk:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AssetsApi->create_assets_bulk: %s\n" % e)

Parameters

Name Type Description Notes
create_assets_bulk_request CreateAssetsBulkRequest
idempotency_key str A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. [optional]

Return type

JobCreated

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 A JobCreated object * X-Request-ID -
0 Error Response * X-Request-ID -

[Back to top] [Back to API list] [Back to Model list] [Back to README]