Pin Tezos Tokens Tool

Learn how to configure the Pin Tezos Tokens for use with Filebase.

What is Pin Tokens?

Pin tokens is a Python script written for pinning Tezos tokens to IPFS that can be configured for use with Filebase.

Read below to learn how to use Pin Tokens with Filebase.

Prerequisites:

1. Clone the following GitHub repository:

git clone https://github.com/loackme/pin_tokens

2. This tool uses the Filebase API token.

This token can be generated by navigating to the Filebase Access Keys page, then viewing the IPFS Pinning Service API Endpoint. Click the drop-down menu for 'Choose Bucket to Generate Token', then choose the IPFS Filebase Bucket you want to use.

Then copy the generated Secret Access Token:

3. Then, navigate into the pin_tokens directory. Install the required dependencies:

cd pin_tokens

python3 -m pip install -r requirements.txt

4. The following command can be used to pin a Tezos token to IPFS through Filebase.

Replace API_KEY with the API key from Step 2, and WALLET_ADDRESS with your crypto wallet address:

python3 pin_tokens.py --wallet WALLET_ADDRESS --role creator --KT versum --service_type filebase --api_key API_KEY

If you have any questions, please join our Discord server, or send us an email at hello@filebase.com

Last updated